﻿<Window x:Class="BackupGUI.Status"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="Status" Height="94" Width="428" Loaded="Window_Loaded" ResizeMode="NoResize" Visibility="Collapsed"
        Background="{DynamicResource ResourceKey=WindowBackground}" Name="StatusWindow" Closing="StatusWindow_Closing">
    <Window.Resources>
        <Storyboard x:Key="IconAnimation">
            <ObjectAnimationUsingKeyFrames Storyboard.TargetProperty="DataContext" Storyboard.TargetName="TrayIcon" Duration="0:0:2" RepeatBehavior="Forever">
                <DiscreteObjectKeyFrame KeyTime="0:0:0">
                    <DiscreteObjectKeyFrame.Value>
                        <ImageSource>/BackupGUI;component/Icons/Icon1.ico</ImageSource>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
                <DiscreteObjectKeyFrame KeyTime="0:0:1">
                    <DiscreteObjectKeyFrame.Value>
                        <ImageSource>/BackupGUI;component/Icons/Icon2.ico</ImageSource>
                    </DiscreteObjectKeyFrame.Value>
                </DiscreteObjectKeyFrame>
            </ObjectAnimationUsingKeyFrames>
        </Storyboard>
    </Window.Resources>
    <Grid>
        <DockPanel>
            <StackPanel DockPanel.Dock="Bottom" Orientation="Horizontal">
                <Button Name="btnPause" Click="btnPause_Click">Starten</Button>
                <Button Name="btnCancel" Click="btnCancel_Click">Abbrechen</Button>
                <Button Name="btnHide" Click="btnHide_Click">Ausblenden</Button>
                <Image Height="16" Name="TrayIcon" Stretch="Fill" Width="16" DataContextChanged="IconChanged"/>
                <FrameworkElement.ContextMenu>
                    <ContextMenu Name="Menu">
                        <MenuItem Name="mnuBackup" Header="Sicherung starten" Click="MenuItem_Click"/>
                        <MenuItem Name="mnuCancel" Header="Sicherung abbrechen" Click="MenuItem_Click" Visibility="Collapsed"/>
                        <MenuItem Name="mnuStatus"  Header="Status" Click="MenuItem_Click"/>
                        <MenuItem Name="mnuSettings" Header="Einstellungen" Click="MenuItem_Click"/>
                        <MenuItem Name="mnuService" Header="Dienst neu starten" Click="MenuItem_Click"/>
                        <Separator/>
                        <MenuItem Name="mnuExit" Header="Beenden" Click="MenuItem_Click"/>
                    </ContextMenu>
                </FrameworkElement.ContextMenu>
            </StackPanel>
            <ProgressBar Name="progressBar"  Maximum="1" />
        </DockPanel>
    </Grid>
</Window>
